import 'package:flutter/foundation.dart';

class ApiConfig {
  // 生产环境
  // static var productUrl = "http://localhost:11434";
  static var productUrl = "http://113.57.10.139:12400";

  static var profileUrl = "http://113.57.10.139:12400";

  // 开发环境
  // static var devUrl = "http://192.168.31.167:11434";
  // static var devUrl = "http://[fd49:f620:1aa2:0:140c:2e44:244d:e384]:11434";
  // static var devUrl = "http://localhost:11434";
  static var devUrl = "http://113.57.10.139:12400";

  static getBaseUrl() {
    if (kReleaseMode) {
      return ApiConfig.productUrl;
    }else if(kProfileMode){
      return ApiConfig.profileUrl;
    }
    return ApiConfig.devUrl;
  }
}
